package ex.mech.MultiCatch;

/**
 * Created with IntelliJ IDEA.
 * User: pavel
 * Date: 1/31/13
 * Time: 12:09 PM
 * To change this template use File | Settings | File Templates.
 */
public class ExceptionMultiCatchLab {
    public static void main(String[] args) throws Throwable {
        System.out.println(0);
        try {
            System.out.println(1);
            if (true) {/**/}
            System.out.print(2);
        } catch (NullPointerException e) {
            System.out.print(3);
            if (true) {/**/}
            System.out.print(4);
        } catch (RuntimeException e) {
            System.out.print(5);
            if (true) {/**/}
            System.out.print(6);
        } catch (Exception e) {
            System.out.print(7);
            if (true) {/**/}
            System.out.print(8);
        } finally {
            System.out.print(9);
            if (true) {/**/}
            System.out.print(10);
        }
        System.out.print(11);
    }
}
